import request from "@/request/baseAxios";

// 获取全部用户信息
export const getPermissions = () => {
  return request({
    url: "/api/permissions",
    method: "get",
  });
};

export const getAllButtonPermissions = () => {
  return request({
    url: "/api/button-permissions?all=true",
    method: "get",
  });
};

export const updatePermissions = (id, data) => {
  return request({
    url: `/api/permissions/${id}`,
    method: "put",
    data,
  });
};
